home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Catalog Service Access Module / DTS Sample CSAM / Src / DTSSampleCSAMDriver.r < prev    next >
Encoding:
Text File  |  1993-06-24  |  2.1 KB  |  73 lines  |  [TEXT/KAHL]

  1. /*
  2.  * DTSSampleCSAMDriver.r
  3.  * Copyright © 1992-93 Apple Computer Inc. All Rights Reserved.
  4.  *
  5.  * This file contains the driver-specific resources for the
  6.  * DTS Sample CSAM. It is included by DTSSampleCSAM.r
  7.  * It is only needed to build the MPW version of the dsam.
  8.  */
  9.  
  10. /*
  11.  * These parameters configure the driver:
  12.  *    kDriverNameString        The Device Manager driver name
  13.  *    kDriverCodeFile            Where link (or Think C) stores the driver code resource
  14.  */
  15. #define kDriverNameString            ".Sample Catalog"
  16. #define kDriverCodeFile                "::Obj:DTSSampleDRVR.code"    /* MPW only    */
  17.  
  18. #if Think_Rez == 0
  19. /*
  20.  * MPWTypes.r contains the hack DRVR resource.
  21.  */
  22. #include "MPWTypes.r"
  23.  
  24. type 'DRVR' as 'DRVW';            /* Map 'DRVW' => 'DRVR' */
  25. /*
  26.  * This will produce a DRVR resource from the special DRVW type.
  27.  *
  28.  * The leading NUL in the resource name is required to
  29.  * conform to the desk accessory naming convention.
  30.  *
  31.  * The resource is declared purgeable.    If the code were to
  32.  * do funky things like SetTrapAddress calls (requiring the code to
  33.  * be around at all times), we would have to set it nonpurgeable.
  34.  */
  35.  
  36. #define DriverID    0x0b        /* DriverID is a dummy, unused, value            */
  37. resource 'DRVR' (DriverID, kDriverNameString, sysheap, locked) 
  38. {
  39.     /*
  40.      * DRVR flags
  41.      */
  42.     needLock, dontNeedTime, dontNeedGoodbye, noStatusEnable,
  43.     ctlEnable, noWriteEnable, noReadEnable,
  44.     0,                    /* drvrDelay in ticks                */
  45.     0,                    /* drvrEMask                        */
  46.     0,                    /* drvrMenu                            */
  47.     kDriverNameString,    /* drvrName (fixed limit 31 chars)    */
  48.     /*
  49.      * This directive inserts the contents of the DRVW resource
  50.      * produced by linking DRVRRuntime.o with our Driver code.
  51.      * Note: either the Think or MPW CSAM will be created.
  52.      * This shouldn't result in any difference.
  53.      */
  54.     $$resource(kDriverCodeFile, 'DRVW', 0)
  55. };
  56. #endif
  57.  
  58. /*
  59.  * The Driver's name must be in the resource named DashName."
  60.  */
  61. resource 'STR ' (kDriverName, "DashName", purgeable ) {
  62.     kDriverNameString
  63. };
  64.  
  65. /*
  66.  * The 'sysz' resource extends the system heap at startup, leaving
  67.  * room for the data needed by this System Extension.
  68.  */
  69. data 'sysz' (0, "8K") {
  70.     $"00 00 20 00"                 /* 8K of system heap */
  71. };
  72.  
  73.